package com.firexxx.detect.monitor;


import com.fasterxml.jackson.core.JsonProcessingException;
import com.firexxx.detect.monitor.markword.IMarkLock;
import com.firexxx.detect.util.JacksonUtil;
import lombok.Getter;
import lombok.Setter;

/**
 * @description: TODO
 * @author: zhuangzhang2
 * @date: 2020-12-18 15:59
 */
@Getter
@Setter
public class JavaObjectHead {
    private IMarkLock markWord;
    private int instanceSize = 0;
    private int spaceLoss = 0;

    public String toJson() throws JsonProcessingException {
        return JacksonUtil.toJsonString(this);
    }

}
